package conditionsAPI;

public class AndDomainCondition extends ComposedDomainCondition{

	private AndCondition andCondition;
	
	public AndDomainCondition(String conditionId) throws ConditionDuplicatedException{
		this.andCondition = new AndCondition(conditionId);
		this.andCondition.setDomainCondition(this);
	}
	
	public void enableConditionOrder(){
		this.andCondition.enableConditionOrder();
	}

	public void disableConditionOrder(){
		this.andCondition.disableConditionOrder();
	}

	@Override
	protected ComposedCondition getComposedCondition() {
		return this.andCondition;
	}
}
